package com.yj.contract.dto;

import com.yj.config.mybatis.pagination.PageDto;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * Copyright 2017 (C) Yunjian-VC
 * Created on : 2017/12/8
 * Author     : Unbelievable9
 **/
@Data
public class ContractListDto extends PageDto {

    @ApiModelProperty("搜索内容")
    private String keyword;

    @ApiModelProperty("筛选月份 格式:yyyy-MM")
    private String month;

    @NotNull(message = "合同状态不能为空")
    @Range(min = 0, max = 5, message = "合同状态范围只能在 0-5 之间")
    @ApiModelProperty(value = "合同状态 0 全部 1 合同审核中 2 待发货 3 进行中 4 已完成 5 已取消", required = true)
    private Integer status;

    @ApiModelProperty("下属部门")
    private Long department_id;

    @ApiModelProperty("下属用户token")
    private String user_token;

    // System
    @ApiModelProperty(hidden = true)
    private String end_month;

    @ApiModelProperty(hidden = true)
    private List<String> list;
}
